<%@page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<html>
<head>
<title>Hello Application</title>
</head>
<body>
<f:view>
  <h:form id="helloForm">
    <h3>Please enter your name </h3>
    <table>
      <tr>
        <td>Name:</td>
        <td>
          <h:inputText id="userName" 
                       value="#{hello.userName}" required="true"/>
          <h:message for="userName" />
        </td>
      </tr>      
    </table>
    <p>
    <h:commandButton id="helloCommand" 
                     type="submit" 
                     value="Submit" 
                     action="#{hello.sayHelloAction}"/>
  </h:form>
  <h:messages globalOnly="true">
  </h:messages>
</f:view>
</body>
</html>
